import { reqSearchList } from '@/api'

//经理
const actions = {
    // search list请求
    async getSearchList({ commit, dispatch, state, getters }, payload) {
        commit('GETSEARCHLIST', (await reqSearchList(payload)).data)
    }
}

//工人
const mutations = {
    GETSEARCHLIST(state, payload) {
        state.searchList = payload
    }
}
const state = {
    searchList: {}
}
const getters = {}

export default {
    actions,
    state,
    getters,
    mutations
}